#include<stdio.h>
int main()
{
	int n,m,base;
	scanf("%d",&n);
	m = n;
	base = 1; 
	while(m>9) {
		m /= 10;
		base *= 10; 
	}
	while(base>0) {
		printf("%d ",n/base);
		n %= base;
		base /= 10;
	}
	printf("\n");
	return 0;
}
